network_sites_updated_message_{$action}
Filter HookDescription
Filters a specific, non-default, site-updated message in the Network admin. The dynamic portion of the hook name, `$action`, refers to the non-default site update action.Hook Information
File Location |
wp-admin/network/sites.php
View on GitHub
|
Hook Type | Filter |
Line Number | 366 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$msg
|
The update message. Default 'Settings saved'. |
Usage Examples
Basic Usage
<?php
// Hook into network_sites_updated_message_{$action}
add_filter('network_sites_updated_message_{$action}', 'my_custom_filter', 10, 1);
function my_custom_filter($msg) {
// Your custom filtering logic here
return $msg;
}
Source Code Context
wp-admin/network/sites.php:366
- How this hook is used in WordPress core
<?php
361 *
362 * @since 3.1.0
363 *
364 * @param string $msg The update message. Default 'Settings saved'.
365 */
366 $msg = apply_filters( "network_sites_updated_message_{$action}", __( 'Settings saved.' ) );
367 break;
368 }
369
370 if ( ! empty( $msg ) ) {
371 $msg = wp_get_admin_notice(
PHP Documentation
<?php
/**
* Filters a specific, non-default, site-updated message in the Network admin.
*
* The dynamic portion of the hook name, `$action`, refers to the non-default
* site update action.
*
* @since 3.1.0
*
* @param string $msg The update message. Default 'Settings saved'.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/network/sites.php
Related Hooks
Related hooks will be displayed here in future updates.